<template>
  <div>
    <svg :width="width" :height="height"></svg>
  </div>
</template>
<script setup>
import * as d3 from "d3";
import { onMounted } from "vue";
const emit = defineEmits(["click", "dom"]);
const $ = ref(null);
const props = defineProps({
  width: {
    type: Number,
    default: 600,
  },
  height: {
    type: Number,
    default: 500,
  },
  dom: {
    type: Object,
  },
});
onMounted(() => {
    $.value = d3.select("svg");
    //console.log($.value)
});
defineExpose({
    $
})
</script>
